const reducer = (state = {
    username: "未登录用户"
}, { type, payload }: {
    type: any;
    payload: any;
}) => {
    switch (type) {
        case 'CHANGE_NAME':
            return {
                username: "前端老兵"
            }
        default:
            return state;
    }
}
export default reducer